package com.nbot.server.mapper.master;

import com.nbot.server.domain.ChecklogDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * @author nbot
 * @email nbot@163.com
 * @date 2018-06-22 00:42:57
 */
@Mapper
public interface ChecklogMapper {

	ChecklogDO get(Long autoid);
	
	List<ChecklogDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(ChecklogDO checklog);
	
	int update(ChecklogDO checklog);
	
	int remove(Long autoid);
	
	int batchRemove(Long[] autoids);

    List<ChecklogDO> logInNmins(@Param("tag") String tag, @Param("checkValue") String checkValue, @Param("timestamp") long timestamp);

	List<ChecklogDO> logInNminsBydisp(@Param("dispDesc") String dispDesc, @Param("checkValue") String checkValue, @Param("timestamp") long timestamp);

	String getMaxAutoId();

	List<ChecklogDO> listChkVal();
	List<ChecklogDO> listDesc();
	List<ChecklogDO> listAlmLev();
}
